home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Precision Software Appli…tions Silver Collection 1
/
Precision Software Applications Silver Collection Volume One (PSM) (1993).iso
/
tutor
/
cptuts22.arj
/
TRUCK.H
< prev
next >
Wrap
C/C++ Source or Header
|
1992-01-20
|
406b
|
23 lines
// Chapter 7 - Program 6
#ifndef TRUCK_H
#define TRUCK_H
#include "vehicle.h"
class truck : public vehicle {
int passenger_load;
float payload;
public:
void init_truck(int how_many = 2, float max_load = 24000.0);
float efficiency(void);
int passengers(void);
};
#endif
// Result of execution
//
// (this file cannot be executed)